package org.edu.modules.resource.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_res_catalog_resource")
@ApiModel(value="ve_res_catalog_resource对象", description="分类资源库")
public class VeResCatalogResource
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("资源ID")
    private Integer resid;
    @ApiModelProperty("资源栏目ID")
    private Integer cataid;
    @ApiModelProperty("供应商终端ID")
    private Integer terminalid;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeResCatalogResource setCataid(Integer cataid)
    {
        this.cataid = cataid;return this;
    }

    public VeResCatalogResource setResid(Integer resid)
    {
        this.resid = resid;return this;
    }

    public VeResCatalogResource setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeResCatalogResource(id=" + getId() + ", resid=" + getResid() + ", cataid=" + getCataid() + ", terminalid=" + getTerminalid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeResCatalogResource setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeResCatalogResource setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $resid = getResid();result = result * 59 + ($resid == null ? 43 : $resid.hashCode());Object $cataid = getCataid();result = result * 59 + ($cataid == null ? 43 : $cataid.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeResCatalogResource;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeResCatalogResource)) {
            return false;
        }
        VeResCatalogResource other = (VeResCatalogResource)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$resid = getResid();Object other$resid = other.getResid();
        if (this$resid == null ? other$resid != null : !this$resid.equals(other$resid)) {
            return false;
        }
        Object this$cataid = getCataid();Object other$cataid = other.getCataid();
        if (this$cataid == null ? other$cataid != null : !this$cataid.equals(other$cataid)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();return this$placeId == null ? other$placeId == null : this$placeId.equals(other$placeId);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getResid()
    {
        return this.resid;
    }

    public Integer getCataid()
    {
        return this.cataid;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
